package com.lorizz.index.impl;

import java.util.ArrayList;
import java.util.List;

import com.lorizz.index.Request;
import com.lorizz.index.SortItem;

public class RequestImpl implements Request {
	
	private String query;
	private List<SortItem> sortItems = new ArrayList<SortItem>();
	private int start = 1;
	private int pageSize = -1;
	
	public RequestImpl(String query) {
		this.query = query;
	}
	
	public RequestImpl(String query, int start, int pageSize) {
		this.query = query;
		this.start = start;
		this.pageSize = pageSize;
	}

	@Override
	public String getQueryString() {
		return query;
	}

	@Override
	public List<SortItem> getSortItems() {
		return sortItems;
	}

	@Override
	public int getStart() {
		return start;
	}

	@Override
	public int getPageSize() {
		return pageSize;
	}

}
